package com.school.controller;

import com.school.entity.Build;
import com.school.service.BuildService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/Build")
public class BuildController {
    @Autowired
    BuildService service;

    // HttpServletRequest request, HttpServletResponse response

    @ResponseBody
    @RequestMapping("/getOne.do")
    public Build getOne(String title) {
        Build build = service.selectAll(title);
        return build;
    }

}
